#ifndef _ghDef_h_
#define _ghDef_h_

#define ghCOLLIDE_MAX(a,b)	((a > b) ? a : b)
#define ghCOLLIDE_MIN(a,b)	((a < b) ? a : b)

#define ghMAIN int main ( int argc, char** argv )

#define ghMODE_2D                 1
#define ghMODE_3D                 2

#define ghKEY_QUIT            666
#define ghKEY_ESCAPE          1
#define ghKEY_FIRST           2
#define ghKEY_BACKSPACE       3
#define ghKEY_TAB             4
#define ghKEY_CLEAR           5
#define ghKEY_RETURN          6
#define ghKEY_PAUSE           7
#define ghKEY_FOO             8
#define ghKEY_SPACE           9
#define ghKEY_EXCLAIM         10
#define ghKEY_QUOTEDBL        11
#define ghKEY_HASH            12
#define ghKEY_DOLLAR          13
#define ghKEY_AMPERSAND       14
#define ghKEY_QUOTE           15
#define ghKEY_LEFTPAREN       16
#define ghKEY_RIGHTPAREN      17
#define ghKEY_ASTERISK        18
#define ghKEY_PLUS            19
#define ghKEY_COMMA           20
#define ghKEY_MINUS           21
#define ghKEY_PERIOD          22
#define ghKEY_SLASH           23
#define ghKEY_0               24
#define ghKEY_1               25
#define ghKEY_2               26
#define ghKEY_3               27
#define ghKEY_4               28
#define ghKEY_5               29
#define ghKEY_6               30
#define ghKEY_7               31
#define ghKEY_8               32
#define ghKEY_9               33
#define ghKEY_COLON           34
#define ghKEY_SEMICOLON       35
#define ghKEY_LESS            36
#define ghKEY_EQUALS          37
#define ghKEY_GREATER         38
#define ghKEY_QUESTION        39
#define ghKEY_AT              40
#define ghKEY_LEFTBRACKET     41
#define ghKEY_BACKSLASH       42
#define ghKEY_RIGHTBRACKET    43
#define ghKEY_CARET           44
#define ghKEY_UNDERSCORE      45
#define ghKEY_BACKQUOTE       46
#define ghKEY_a               47
#define ghKEY_b               48
#define ghKEY_c               49
#define ghKEY_d               50
#define ghKEY_e               51
#define ghKEY_f               52
#define ghKEY_g               53
#define ghKEY_h               54
#define ghKEY_i               55
#define ghKEY_j               56
#define ghKEY_k               57
#define ghKEY_l               58
#define ghKEY_m               59
#define ghKEY_n               60
#define ghKEY_o               61
#define ghKEY_p               62
#define ghKEY_q               63
#define ghKEY_r               64
#define ghKEY_s               65
#define ghKEY_t               66
#define ghKEY_u               67
#define ghKEY_v               68
#define ghKEY_w               69
#define ghKEY_x               70
#define ghKEY_y               71
#define ghKEY_z               72
#define ghKEY_DELETE          73
#define ghKEY_KP0             74
#define ghKEY_KP1             75
#define ghKEY_KP2             76
#define ghKEY_KP3             77
#define ghKEY_KP4             78
#define ghKEY_KP5             79
#define ghKEY_KP6             80
#define ghKEY_KP7             81
#define ghKEY_KP8             82
#define ghKEY_KP9             83
#define ghKEY_KP_PERIOD       84
#define ghKEY_KP_DIVIDE       85
#define ghKEY_KP_MULTIPLY     86
#define ghKEY_KP_MINUS        87
#define ghKEY_KP_PLUS         88
#define ghKEY_KP_ENTER        89
#define ghKEY_KP_EQUALS       90
#define ghKEY_UP              91
#define ghKEY_DOWN            92
#define ghKEY_RIGHT           93
#define ghKEY_LEFT            94
#define ghKEY_INSERT          95
#define ghKEY_HOME            96
#define ghKEY_END             97
#define ghKEY_PAGEUP          98
#define ghKEY_PAGEDOWN        99
#define ghKEY_F1              100
#define ghKEY_F2              101
#define ghKEY_F3              102
#define ghKEY_F4              103
#define ghKEY_F5              104
#define ghKEY_F6              105
#define ghKEY_F7              106
#define ghKEY_F8              107
#define ghKEY_F9              108
#define ghKEY_F10             109
#define ghKEY_F11             110
#define ghKEY_F12             111
#define ghKEY_F13             112
#define ghKEY_F14             113
#define ghKEY_F15             114
#define ghKEY_NUMLOCK         115
#define ghKEY_CAPSLOCK        116
#define ghKEY_SCROLLOCK       117
#define ghKEY_RSHIFT          118
#define ghKEY_LSHIFT          119
#define ghKEY_RCTRL           120
#define ghKEY_LCTRL           121
#define ghKEY_RALT            122
#define ghKEY_LALT            123
#define ghKEY_RMETA           124
#define ghKEY_LMETA           125
#define ghKEY_LSUPER          126
#define ghKEY_RSUPER          127
#define ghKEY_MODE            128
#define ghKEY_COMPOSE         129
#define ghKEY_HELP            130
#define ghKEY_PRINT           131
#define ghKEY_SYSREQ          132
#define ghKEY_BREAK           133
#define ghKEY_MENU            134
#define ghKEY_POWER           135
#define ghKEY_EURO            136
#define ghKEY_UNDO            137

#define ghMOUSE_LEFT          138
#define ghMOUSE_MIDDLE        139
#define ghMOUSE_RIGHT         140

#endif
